﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HRM.Model;
using GalaSoft.MvvmLight.Ioc;

namespace HRM.ViewModel
{
    public class SalaryViewModel : ViewModelGeneric<BangLuong>
    {
        //private IEntityService<NhanVien> _staffService;

        public SalaryViewModel(IEntityService<BangLuong> service) //, IEntityService<NhanVien> staffService
            : base(service)
        {
            //_staffService = staffService;
            //Staffs = _staffService.GetAll();
            //if (Staffs.Count > 0)
            //{
            //    StaffSelected = Staffs[0];
            //    SimpleIoc.Default.Register<NhanVien>(() => StaffSelected);
            //}
        }

        //public List<NhanVien> Staffs { get; private set; }

        //private NhanVien _staffSelected;

        //public NhanVien StaffSelected
        //{
        //    get { return _staffSelected; }
        //    set
        //    {
        //        if (_staffSelected != value)
        //        {
        //            _staffSelected = value;
        //            RaisePropertyChanged("StaffSelected");
        //        }
        //    }
        //}
    }
}
